<script setup lang="ts">
import { ref } from "vue"

const dateRange = ref('')
const changeLog = (e) => {
  console.log(e)
}
</script>

<template>
  <uni-section
    :title="'日期时间用法：' + dateRange"
    type="line"
  ></uni-section>
  <view class="example-body">
    <uni-datetime-picker
      type="datetime"
      v-model="dateRange"
      @change="changeLog"
    />
  </view>
</template>